import request from '@/utils/request'

// 查询佣金余额列表
export function listCommissionBalance(query) {
  return request({
    url: '/shopping/commissionBalance/list',
    method: 'get',
    params: query
  })
}

// 查询佣金余额详细
export function getCommissionBalance(id) {
  return request({
    url: '/shopping/commissionBalance/' + id,
    method: 'get'
  })
}

// 新增佣金余额
export function addCommissionBalance(data) {
  return request({
    url: '/shopping/commissionBalance',
    method: 'post',
    data: data
  })
}

// 修改佣金余额
export function updateCommissionBalance(data) {
  return request({
    url: '/shopping/commissionBalance',
    method: 'put',
    data: data
  })
}

// 删除佣金余额
export function delCommissionBalance(id) {
  return request({
    url: '/shopping/commissionBalance/' + id,
    method: 'delete'
  })
}
// 删除佣金余额
export function logicDelCommissionBalance(id) {
  return request({
    url: '/shopping/commissionBalance/' + id,
    method: 'delete'
  })
}

// 导出佣金余额
export function exportCommissionBalance(query) {
  return request({
    url: '/shopping/commissionBalance/export',
    method: 'get',
    params: query
  })
}
